#!/bin/sh

USER_ID=cnqJHx9hx6PfMFu8u

## 注册app
#curl -H "Content-Type:application/json" -X POST -d '{"action":"注册", "appId": "IM", "device": "小米", "deviceId": "123123123", "mobileOS": "iOS 11", "version": "1.0.0", "userId": "'${USER_ID}'", "phone": "13548582375", "userCreatedAt": "2018-06-13 05:37:28.094Z"}' localhost:4000/statistics/v1/user


## 打开app
#curl -H "Content-Type:application/json" -X POST -d '{"action":"打开app",  "appId": "IM", "device": "小米", "deviceId": "123123123", "mobileOS": "iOS 11", "version": "1.0.0", "userId": "'${USER_ID}'", "phone": "13548582375", "userCreatedAt": "2018-06-13 05:37:28.094Z"}' localhost:4000/statistics/v1/user
#curl -H "Content-Type:application/json" -X POST -d '{"action":"打开app",  "appId": "IM", "device": "小米2", "deviceId": "123123123", "mobileOS": "iOS 11", "version": "1.0.0", "userId": "'${USER_ID}'", "phone": "13548582375", "userCreatedAt": "2018-06-13 05:37:28.094Z"}' localhost:4000/statistics/v1/user

## 活跃时间
#curl -H "Content-Type:application/json" -X POST -d '{"action":"活跃时间", "activeTime": 13, "appId": "IM", "device": "小米", "deviceId": "123123123", "mobileOS": "iOS 11", "version": "1.0.0", "userId": "'$USER_ID'", "phone": "13548582375", "userCreatedAt": "2018-06-13 05:37:28.094Z"}' localhost:4000/statistics/v1/user
#curl -H "Content-Type:application/json" -X POST -d '{"action":"活跃时间", "activeTime": 10, "appId": "IM", "device": "小米", "deviceId": "123123123", "mobileOS": "iOS 11", "version": "1.0.0", "userId": "'$USER_ID'", "phone": "13548582375", "userCreatedAt": "2018-06-13 05:37:28.094Z"}' 112.74.163.86:4000/statistics/v1/user


## 跑牌统计服

#USER_ID=123456789
#curl -H "Content-Type:application/json" -X POST -d '{"action":"注册", "appId": "IM", "device": "小米", "deviceId": "123123123", "mobileOS": "iOS 11", "version": "1.0.0", "userId": "'$USER_ID'", "phone": "13548582375", "userCreatedAt": "2018-06-13 05:37:28.094Z"}' http://47.106.74.13:4000/statistics/paopai/v1/user
#curl -H "Content-Type:application/json" -X POST -d '{"action":"注册", "appId": "IM", "device": "小米", "deviceId": "123123123", "mobileOS": "iOS 11", "version": "1.0.0", "userId": "'$USER_ID'", "phone": "13548582375", "userCreatedAt": "2018-06-13 05:37:28.094Z"}' http://localhost:4000/statistics/paopai/v1/user
#curl -H "Content-Type:application/json" -X POST -d '{"action":"打开app", "appId": "IM", "device": "小米", "deviceId": "123123123", "mobileOS": "iOS 11", "version": "1.0.0", "userId": "'$USER_ID'", "phone": "13548582375", "userCreatedAt": "2018-06-13 05:37:28.094Z"}' http://localhost:4000/statistics/paopai/v1/user
#curl -H "Content-Type:application/json" -X POST -d '{"action":"在玩游戏", "appId": "IM", "device": "小米", "deviceId": "123123123", "mobileOS": "iOS 11", "version": "1.0.0", "userId": "'$USER_ID'", "phone": "13548582375", "userCreatedAt": "2018-06-13 05:37:28.094Z"}' http://localhost:4000/statistics/paopai/v1/user
#curl -H "Content-Type:application/json" -X POST -d '{"action":"消耗房卡", "cost_cards": 3,"appId": "IM", "device": "小米", "deviceId": "123123123", "mobileOS": "iOS 11", "version": "1.0.0", "userId": "'$USER_ID'", "phone": "13548582375", "userCreatedAt": "2018-06-13 05:37:28.094Z"}' http://localhost:4000/statistics/paopai/v1/user

curl -H "Content-Type:application/json" -X POST -d '{"action":"在线人数", "server": "192.168.2.80:34", "online_users": 10}' http://localhost:4000/statistics/paopai/v1/online_users
